import request from '@/utils/request'

// 查询assess列表
export function listAssess(query) {
  return request({
    url: '/system/assess/list',
    method: 'get',
    params: query
  })
}

// 查询assess详细
export function getAssess(assessId) {
  return request({
    url: '/system/assess/' + assessId,
    method: 'get'
  })
}

// 新增assess
export function addAssess(data) {
  return request({
    url: '/system/assess',
    method: 'post',
    data: data
  })
}

// 修改assess
export function updateAssess(data) {
  return request({
    url: '/system/assess',
    method: 'put',
    data: data
  })
}

// 删除assess
export function delAssess(assessId) {
  return request({
    url: '/system/assess/' + assessId,
    method: 'delete'
  })
}

// 导出assess
export function exportAssess(query) {
  return request({
    url: '/system/assess/export',
    method: 'get',
    params: query
  })
}